You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.
As you can see in output I have a string like this:
{"ct":"UbDpkBRT1R5Tbt+hp0nX6w==","iv":"6c113edfbc0d7d917294ecdfc4d61d6f","s":"a872cd319b0d2a52"}
I would like to have an encrypted string more simple because I would like that an user can write it.
I thought that the user digits "ct" (better if the string is 16 char between A-Za-z0-9) and I pass to the function "iv" and "s".
An example from your is most appreciate because I'm a beginner... thanks
The text was updated successfully, but these errors were encountered:
Hi, it is impossible to reduce the size of the encrypted string. You can encode it in base64 with btoa() to only have chars from A-Z0-9=.
But it increases the size of the string by around 1/3 of it's original encrypted length. In your case this will be eyJjdCI6IlViRHBrQlJUMVI1VGJ0K2hwMG5YNnc9PSIsIml2IjoiNmMxMTNlZGZiYzBkN2Q5MTcyOTRlY2RmYzRkNjFkNmYiLCJzIjoiYTg3MmNkMzE5YjBkMmE1MiJ9.
Nobody can write this by hand :) It's the nature of encryption that the encrypted text is more or less longer than the original.
Thanks for your code... it's most appreciate. I have a question... is it possible to have in output a simpler encryption string?
This is the code that I following:
As you can see in output I have a string like this:
{"ct":"UbDpkBRT1R5Tbt+hp0nX6w==","iv":"6c113edfbc0d7d917294ecdfc4d61d6f","s":"a872cd319b0d2a52"}
I would like to have an encrypted string more simple because I would like that an user can write it.
I thought that the user digits "ct" (better if the string is 16 char between A-Za-z0-9) and I pass to the function "iv" and "s".
An example from your is most appreciate because I'm a beginner... thanks
The text was updated successfully, but these errors were encountered: