repo.or.cz
/
ProtonMail-WebClient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'fix-typo-drive' into 'main'
[ProtonMail-WebClient.git]
/
packages
/
pass
/
hooks
/
useDeobfuscatedValue.ts
blob
2db0bfaa09faa80babaad411fa699dfc29da064f
1
import { useMemo } from 'react';
2
3
import { type XorObfuscation, deobfuscate } from '@proton/pass/utils/obfuscate/xor';
4
5
export const useDeobfuscatedValue = (value: XorObfuscation) => useMemo(() => deobfuscate(value), [value.m, value.v]);