Файл: Скачать Создание дорвеев пошаговая инструкция Создание дорвеев, инструкция с чего начать. Обучение по созданию дорвеев с подробным руководством по дорвеям. Блог про дорвеи. Как создать дорвей с нуля. Опубликовано в Обо всем, Создание сайтов Теги: создание сайтов. Создаем дорвей и смотрим что из этого выйдет. Всем привет, решил немного рассказать о дорвеях, что это такое и с чем их едят. Пример простейшей генерации. Posted on 22 ноября 201023 ноября 2010 by Elsper. Хотя публика и встретила холодно прошлый пост все же продолжу про адалт дорвеи. В этом посте мы сгенерируем на php простенький сайт. Генерериуем наш первый дорвей. Для создания дорвея нам потребуется генератор дорвеев. И так у нас получился тестовый дорвей. Теперь я расскажу вам о том как
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "openssl" | |
require 'digest/sha2' | |
require 'base64' | |
# We use the AES 256 bit cipher-block chaining symetric encryption | |
alg = "AES-256-CBC" | |
# We want a 256 bit key symetric key based on some passphrase | |
digest = Digest::SHA256.new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include JwtAuthentication | |
protect_from_forgery with: :exception | |
… | |
protected | |
… | |
def authenticate_customer_from_token! | |
if claims and customer = Customer.find_by(email: claims[0]['email']) | |
@current_customer = customer | |
else | |
invalid_authentication |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I use the first | |
—– BEGIN LICENSE —– | |
Michael Barnes | |
Single User License | |
EA7E-821385 | |
8A353C41 872A0D5C DF9B2950 AFF6F667 | |
C458EA6D 8EA3C286 98D1D650 131A97AB | |
AA919AEC EF20E143 B361B1E7 4C8B7F04 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew tap homebrew/versions | |
brew install v8-315 | |
gem install libv8 -v '3.16.14.13' -- --with-system-v8 | |
gem install therubyracer -- --with-v8-dir=/usr/local/opt/v8-315 | |
bundle install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#_____________________________________________________________________ | |
#_________(_)_________________ ___________ ____________ _____________ | |
#________ /_ __ \_ ___/ _ \______/ __ `/ _ \_ __ `__ \________ | |
#_______ / / /_/ /(__ )/ __/_____/ /_/ // __/ / / / / /_______ | |
#______ / \____//____/ \___/______\__, / \___//_/ /_/ /_/_______ | |
#___/___/__________________________/____/________________________ | |
################################################################# | |
########################## GENERATE KEY ######################### | |
################################################################# |
For MacOS Catalina, visit Install mysql2 on MacOS Catalina
Installing mysql2
gem errors on MacOS Mojave.
Make sure openssl
is installed on Mac via Homebrew.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'jose' | |
# HS256 Symmetric Signature | |
secret = 'some128bitsecret' | |
jwk = JOSE::JWK.from_oct(secret) | |
header = { "alg" => "HS256" } | |
payload = { "iss" => "Chris Larsen", | |
"sub" => "JWTs", | |
"aud" => "Silicon Halton Software P2P", | |
"iat" => 1540121863 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'jose' | |
message = "Jodie Whittaker is the greatest Doctor ever!" | |
# A128GCM Symmetric Key Encryption/Decryption | |
puts "-----Symmetric Key Encryption/Decryption-----" | |
secret = 'some128bitsecret' | |
jwk = JOSE::JWK.from_oct(secret) | |
encrypted_a128gcmkw = JOSE::JWE.block_encrypt(jwk, message, { "alg" => "A128GCMKW", "enc" => "A128GCM" }).compact | |
puts "encrypted JWE: #{encrypted_a128gcmkw}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# gem install jose | |
require 'jose' | |
payload = { | |
'secret' => 'Cicadoidea' | |
} | |
## | |
# Encrypt your payload. |
OlderNewer