feat(hash-text): digest base selector (#254)
This commit is contained in:
committed by
GitHub
parent
fad4833ca2
commit
422b6eb05a
7
src/tools/hash-text/hash-text.service.ts
Normal file
7
src/tools/hash-text/hash-text.service.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export function convertHexToBin(hex: string) {
|
||||
return hex
|
||||
.trim()
|
||||
.split('')
|
||||
.map((byte) => parseInt(byte, 16).toString(2).padStart(4, '0'))
|
||||
.join('');
|
||||
}
|
||||
Reference in New Issue
Block a user