Implement base64url encoding from RFC 4648
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Nov 2013 01:45:36 +0000 (01:45 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Nov 2013 01:45:36 +0000 (01:45 +0000)
commit061e946ab38aeccbe9ee28efbce608b67793c470
tree1ded33a882d706fa50aeb7a586625c2c067ed423
parent957d1562930bbdc7a42bc9e6e1c17b2be50ae6b9
Implement base64url encoding from RFC 4648
https://bugs.webkit.org/show_bug.cgi?id=123767

Reviewed by Sam Weinig.

No tests yet, will be covered by JWK tests for WebCrypto.

* wtf/text/Base64.cpp:
(WTF::base64EncodeInternal):
(WTF::base64Encode):
(WTF::base64URLEncode):
(WTF::base64DecodeInternal):
(WTF::base64Decode):
(WTF::base64URLDecode):
* wtf/text/Base64.h:
(WTF::base64URLEncode):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@158628 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WTF/ChangeLog
Source/WTF/wtf/text/Base64.cpp
Source/WTF/wtf/text/Base64.h