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

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -