rot19 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rot19.rb +9 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9be006c186ddd4815e1d8bc306c5336c54cb0610
|
4
|
+
data.tar.gz: e4141881930c6702862bd8cf65262e399eb975a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eeff039443dc7bd1f4c33a2459b01ae17b0ae9a2f2cc3105047c6a89ac84d7c5655818015f09e2b694e7def4e4212443eceeba8b10f3ca179566a9141e1ffa5c
|
7
|
+
data.tar.gz: 399cd32f4aeb9188c84235318f2c138338da65c2151c87f905f12d59f0dd3efad8ba6ebd5b6772cd9049bde3cf5d9fc2bb0f1352e4d98d5db7e559abb8c83ca2
|
data/lib/rot19.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
class Rot19
|
2
|
-
def self.initialize(
|
2
|
+
def self.initialize(19, "sandeep")
|
3
3
|
i = shift % alphabet.size #I like this
|
4
4
|
@decrypt = alphabet
|
5
5
|
@encrypt = alphabet[i..-1] + alphabet[0...i]
|
@@ -14,11 +14,11 @@ class Rot19
|
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
-
puts "Enter Original Password"
|
18
|
-
list = gets
|
19
|
-
#original_text = "this is rot19 encryption whoo"
|
20
|
-
convert_text = Rot19.new(19).encrypt(list)
|
21
|
-
printf "Original Password is => "
|
22
|
-
puts list
|
23
|
-
printf "rot19 encryption password is => "
|
24
|
-
puts convert_text
|
17
|
+
# puts "Enter Original Password"
|
18
|
+
# list = gets
|
19
|
+
# #original_text = "this is rot19 encryption whoo"
|
20
|
+
# convert_text = Rot19.new(19).encrypt(list)
|
21
|
+
# printf "Original Password is => "
|
22
|
+
# puts list
|
23
|
+
# printf "rot19 encryption password is => "
|
24
|
+
# puts convert_text
|