sixarm_ruby_secure_random 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. data.tar.gz.sig +1 -0
  2. data/.gemtest +0 -0
  3. data/LICENSE.txt +12 -0
  4. data/README.rdoc +37 -0
  5. data/Rakefile +8 -0
  6. metadata +79 -0
  7. metadata.gz.sig +1 -0
@@ -0,0 +1 @@
1
+ ���1�� �zq�����+������a��) K쁇i���� i�!߂�u^R
File without changes
@@ -0,0 +1,12 @@
1
+ LICENSE
2
+
3
+ You may choose any of these licenses:
4
+
5
+ - CreativeCommons License, Non-commercial Share Alike
6
+ - LGPL, GNU Lesser General Public License
7
+ - MIT License
8
+ - Ruby License
9
+
10
+ THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
11
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
12
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
@@ -0,0 +1,37 @@
1
+ = SixArm.com » Ruby » SecureRandom gem number generator for Ruby 1.8.6, backported from 1.8.7
2
+
3
+ Author:: Joel Parker Henderson, joelparkerhenderson@gmail.com
4
+ Copyright:: Copyright the original author; I merely made it into a gem.
5
+ License:: See LICENSE.txt file
6
+
7
+ This gem is intended for use with Ruby 1.8.6 only.
8
+
9
+ This gem is a backport of the built-in securerandom method from Ruby 1.8.7.
10
+
11
+ This library is an interface for secure random number generator which is
12
+ suitable for generating session key in HTTP cookies, etc.
13
+
14
+ It supports following secure random number generators.
15
+
16
+ * openssl
17
+ * /dev/urandom
18
+
19
+ Examples
20
+ SecureRandom.hex(10) => "52750b30ffbc7de3b362"
21
+ SecureRandom.hex(10) => "92b15d6c8dc4beb5f559"
22
+ SecureRandom.hex(11) => "6aca1b5c58e4863e6b81b8"
23
+ SecureRandom.hex(12) => "94b2fff3e7fd9b9c391a2306"
24
+ SecureRandom.hex(13) => "39b290146bea6ce975c37cfc23"
25
+
26
+ Examples
27
+ SecureRandom.base64(10) => "EcmTPZwWRAozdA=="
28
+ SecureRandom.base64(10) => "9b0nsevdwNuM/w=="
29
+ SecureRandom.base64(10) => "KO1nIU+p9DKxGg=="
30
+ SecureRandom.base64(11) => "l7XEiFja+8EKEtY="
31
+ SecureRandom.base64(12) => "7kJSM/MzBJI+75j8"
32
+ SecureRandom.base64(13) => "vKLJ0tXBHqQOuIcSIg=="
33
+
34
+ Examples
35
+ SecureRandom.random_bytes(10) => "\016\t{\370g\310pbr\301"
36
+ SecureRandom.random_bytes(10) => "\323U\030TO\234\357\020\a\337"
37
+
@@ -0,0 +1,8 @@
1
+ # -*- coding: utf-8 -*-
2
+ require 'rake'
3
+ require 'rake/testtask'
4
+
5
+ Rake::TestTask.new(:test) do |t|
6
+ t.libs << 'lib' << 'test'
7
+ t.pattern = 'test/*.rb'
8
+ end
metadata ADDED
@@ -0,0 +1,79 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sixarm_ruby_secure_random
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 1.2.1
6
+ platform: ruby
7
+ authors:
8
+ - SixArm
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain:
12
+ - |
13
+ -----BEGIN CERTIFICATE-----
14
+ MIIDBDCCAm2gAwIBAgIJAKPwEETU5bHoMA0GCSqGSIb3DQEBBQUAMGAxCzAJBgNV
15
+ BAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNp
16
+ c2NvMQ8wDQYDVQQKEwZTaXhBcm0xEzARBgNVBAMTCnNpeGFybS5jb20wHhcNMTAx
17
+ MjEzMjMyNzEzWhcNMTMwOTA4MjMyNzEzWjBgMQswCQYDVQQGEwJVUzETMBEGA1UE
18
+ CBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEPMA0GA1UEChMG
19
+ U2l4QXJtMRMwEQYDVQQDEwpzaXhhcm0uY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GN
20
+ ADCBiQKBgQC94mD9JDwBsunsOI0VR3CXXbOWg9cWaWciwFyJNFiM7A9I8KPLfXUw
21
+ QC4czUe5ZuG4WHvinrWhkrCK+1dWBqoEClxdF/FoKO5a+tonGCjjmfy81JmFjjyx
22
+ eTsjsHyvw+Qik9kpf9aj6+pnkNrVswgNHVea2o9yabbEiS6VSeJWoQIDAQABo4HF
23
+ MIHCMB0GA1UdDgQWBBQzPJtqmSgc53eDN7aSzDQwr9TALDCBkgYDVR0jBIGKMIGH
24
+ gBQzPJtqmSgc53eDN7aSzDQwr9TALKFkpGIwYDELMAkGA1UEBhMCVVMxEzARBgNV
25
+ BAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lzY28xDzANBgNVBAoT
26
+ BlNpeEFybTETMBEGA1UEAxMKc2l4YXJtLmNvbYIJAKPwEETU5bHoMAwGA1UdEwQF
27
+ MAMBAf8wDQYJKoZIhvcNAQEFBQADgYEAooEexP/oPam1TP71SyuhxMb+uTrZbSQe
28
+ jVB+ExRwWadGwaNPUA56d39qwavwP+iu+3JpeonNMVvbWXF5naCX/dNFIeREHzER
29
+ ZDRQYMqru9TEMna6HD9zpcstF7vwThGovlOQ+3Y6plQ4nMzipXcZ9THqs65PIL0q
30
+ eabwpCbAopo=
31
+ -----END CERTIFICATE-----
32
+
33
+ date: 2011-04-09 00:00:00 -07:00
34
+ default_executable:
35
+ dependencies: []
36
+
37
+ description:
38
+ email: sixarm@sixarm.com
39
+ executables: []
40
+
41
+ extensions: []
42
+
43
+ extra_rdoc_files: []
44
+
45
+ files:
46
+ - .gemtest
47
+ - Rakefile
48
+ - README.rdoc
49
+ - LICENSE.txt
50
+ has_rdoc: true
51
+ homepage: http://sixarm.com/
52
+ licenses: []
53
+
54
+ post_install_message:
55
+ rdoc_options: []
56
+
57
+ require_paths:
58
+ - lib
59
+ required_ruby_version: !ruby/object:Gem::Requirement
60
+ none: false
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: "0"
65
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: "0"
71
+ requirements: []
72
+
73
+ rubyforge_project:
74
+ rubygems_version: 1.6.2
75
+ signing_key:
76
+ specification_version: 3
77
+ summary: "SixArm.com \xC2\xBB Ruby \xC2\xBB secure random number method for Ruby 1.8.6"
78
+ test_files: []
79
+
@@ -0,0 +1 @@
1
+ !��3b���V��G����p��]�d�W�Qv�i(��=��bm<��NP_��1�6$I*��F���tI�َ�of�8H�g4�u�whA ���D'nnມ���W'?��un\52����E8���=�.���