base64url 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/base64url.rb +23 -1
  2. metadata +1 -1
@@ -1,4 +1,26 @@
1
- # The Base64URL module provides for the encoding and decoding method using base64url representation.
1
+ #
2
+ # = base64url.rb: methods for base64url-encoding and -decoding strings
3
+ #
4
+
5
+ # The Base64URL module provides for the encoding and decoding of binary data
6
+ # using a base64url representation.
7
+ #
8
+ # base64url encoding is Base64 for URLs and filenames.
9
+ # base64url's 62nd and 63rd chars are '-' and '_'.
10
+ # base64url does not have pad chars '='.
11
+ #
12
+ # == Example
13
+ #
14
+ # A simple encoding and decoding.
15
+ #
16
+ # require "base64url"
17
+ #
18
+ # enc = Base64URL.encode('Send reinforcements')
19
+ # # -> "U2VuZCByZWluZm9yY2VtZW50cw"
20
+ # plain = Base64URL.decode(enc)
21
+ # # -> "Send reinforcements"
22
+ #
23
+
2
24
  module Base64URL
3
25
  module_function
4
26
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: base64url
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: