BCASMART / foundation-ts

BCA Typescript foundation project
1 stars 1 forks source link

Problem with base64 encoding #1

Open viwydev opened 7 months ago

viwydev commented 7 months ago

I don't get the same result if I use the string object's "toBase64" function and if I use an online tool.

For example: the chain "Votre mot de passe d'accès à monsite.com a été changé" is encoded : with 'toBase64()' function => Vm90cmUgbW90IGRlIHBhc3NlIGQnYWNj6HMg4CBtb25zaXRlLmNvbSBhIOl06SBjaGFuZ+k=

with 'www.convertstring.com' website => Vm90cmUgbW90IGRlIHBhc3NlIGQnYWNjw6hzIMOgIG1vbnNpdGUuY29tIGEgw6l0w6kgY2hhbmfDqQ==

with 'www.base64encode.org' => Vm90cmUgbW90IGRlIHBhc3NlIGQnYWNjw6hzIMOgIG1vbnNpdGUuY29tIGEgw6l0w6kgY2hhbmfDqQ==

viwydev commented 7 months ago

If I use Java language :