java - SHA-256-encrypted string as directory name -
i need use sha-256-'encrypted' string part of path in filesystem (ext3, fat, ntfs, ...).
i try encode base64, not work in cases, because base64-encoded string may contain '/', '\' or other invalid chars.
is there (easy) way file-system-safe name of sha-256-'encrypted'-string? not use string.replaceall() possible invalid chars.
thanks in advance help
i not allowed write comments ... try answer.
you should use uuids. must not longer sha-hash. if so, have imho done wrong.
Comments
Post a Comment