Skip to content
  • Privacy Policy
「 ishygddt.xyz/~blog/ 」
  • Privacy Policy
「 ishygddt.xyz/~blog/ 」

Month: March 2022

a small insight on cryptography

March 26, 2022

Abstractly speaking, a hash function and a symmetric cipher are "the same thing". But, concretely, there is a symmetry between Stream cipher: map a fixed-length random input to a variable-length random output Hash function: map a variable-length random input to a fixed-length random output

Posted in Uncategorized  •  No Comments on a small insight on cryptography

Basic "while" loop in Elixir

March 18, 2022March 19, 2022

Given this Python code: def f(k): n = 2 << k q = 2 i = 1 while q != n: i *= q q <<= 1 return i The Elixir translation is roughly the following: def f(k) do n = 2 <<< k # Remember to add "use Bitwise" at the top of the module q = 2 i = 1 # (Storing the output into a tuple …

Posted in [DRAFT]  •  No Comments on Basic "while" loop in Elixir

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Referral Links 💵

  • VPS ($5/mo 2-core, 2GB RAM, 80GB SSD)
  • Cheap Chinese Electronics
  • Custom Bankcard Covers
  • Disposable Virtual Debit Cards
  • Discreet "Surgical Masks"

Recent Posts

  • Late Fee Reimbursement with Discover Bank BillPay
  • Getting SCALE-MAMBA working
  • [DRAFT] "Direction" of time?
  • Blanket anti-hacking laws
  • [DRAFT] "PROTON_USE_WINED3D" explained

Recent Comments

  • Adam on Most efficient random integer generator by random bits consumed
  • James E. on A very tiny bitmap font
  • James E. on X25519 original specification
  • wp_admin on WordPress: Restrict MathJax to a class
  • James E. on Garland Favorito bumped from witnessing

Archives

  • January 2023
  • October 2022
  • July 2022
  • June 2022
  • May 2022
  • March 2022
  • February 2022
  • January 2022
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • August 2020
  • July 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • October 2019
  • August 2019

Categories

  • [DRAFT]
  • How-To
  • OC
  • Transcripts
  • Uncategorized
  • Writeups

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright © 2023 「 ishygddt.xyz/~blog/ 」 — powered by Suki