README.md in ipcrypt-1.0.0 vs README.md in ipcrypt-1.0.1

- old
+ new

@@ -90,38 +90,38 @@ A random 16-byte key will be generated and stored as the `@default_key` instance variable - this can be retrieved with the `#default_key` attribute reader. This default key is used as the encryption key if none is specified as an argument for the `#encrypt` instance method. ### Using a default key ```ruby -encrypter = IPCrypt::IP['94.175.013.122', '73.155.92.01'] -=> #<IPCrypt::Engine:0x00007ff9f904fc68 @default_key="\x95\xC6\rM\xE5\xFAKE\xAD\x16\x80\x9A\xF6\xA9\v\x8B", @ips=["94.175.013.122", "73.155.92.01"]> +crypter = IPCrypt::IP['94.175.013.122', '73.155.92.01'] +=> #<IPCrypt::Engine:0x00007f87139ae150 @default_key="\xB5\xBA\xE1\xD6\x1C\x9F\xD1#[\x93\xD8\x86\xBC\xFD\xACx", @ips=["94.175.013.122", "73.155.92.01"]> -encrypted = encrypter.encrypt -=> ["221.69.213.73", "80.1.170.94"] +crypter.ips = crypter.encrypt +=> ["126.189.155.194", "51.239.168.232"] -decrypter = IPCrypt::IP[encrypted] -=> #<IPCrypt::Engine:0x00007ff9f91618e0 @default_key="\xF8\x00\x8Cdj\xFF\xE9\x82\xE9\v\x85e\xF6\x7F 8", @ips=["221.69.213.73", "80.1.170.94"]> +crypter +=> #<IPCrypt::Engine:0x00007f87139ae150 @default_key="\xB5\xBA\xE1\xD6\x1C\x9F\xD1#[\x93\xD8\x86\xBC\xFD\xACx", @ips=["126.189.155.194", "51.239.168.232"]> -decrypted = decrypter.decrypt encrypter.default_key +crypter.decrypt crypter.default_key => ["94.175.13.122", "73.155.92.1"] ``` ### Using a set key ```ruby -key = '16-byte-key-123!' -=> "16-byte-key-123" +key = 'secret-16-bytes!' +=> "secret-16-bytes!" -encrypter = IPCrypt::IP['94.175.013.122', '73.155.92.01'] +crypter = IPCrypt::IP['94.175.013.122', '73.155.92.01'] => #<IPCrypt::Engine:0x00007fe851049db8 @default_key="\xCC\xE0j\x13s\xB9B+\xEF'\xC8\xFC\xD4\xA5\xFCW", @ips=["94.175.013.122", "73.155.92.01"]> -encrypted = encrypter.encrypt key -=> ["74.248.51.155", "132.12.16.129"] +crypter.ips = crypter.encrypt key +=> ["239.130.3.132", "168.16.121.58"] -decrypter = IPCrypt::IP[encrypted] -=> #<IPCrypt::Engine:0x00007fe85117b1c8 @default_key="\xFA\x9C\x1E\xEE\xA7\xE3\xA1\xFD(9Q\x94\x11\xA4\x90\x19", @ips=["74.248.51.155", "132.12.16.129"]> +crypter +=> #<IPCrypt::Engine:0x00007fb84f1a4230 @default_key="FN\xECa\x92\xA3\x1A\xC3(E\x9E\xF4\xD4\xBC\x8F)", @ips=["239.130.3.132", "168.16.121.58"]> -decrypted = decrypter.decrypt key +crypter.decrypt key => ["94.175.13.122", "73.155.92.1"] ``` ## Contributing