Skip to content

🌟 [Major]: Align function naming with libsodium - #22

Merged
Marius Storhaug (MariusStorhaug) merged 12 commits into
mainfrom
rename
Feb 8, 2025
Merged

🌟 [Major]: Align function naming with libsodium#22
Marius Storhaug (MariusStorhaug) merged 12 commits into
mainfrom
rename

Conversation

@MariusStorhaug

@MariusStorhaug Marius Storhaug (MariusStorhaug) commented Feb 8, 2025

Copy link
Copy Markdown
Member

Description

This pull request attempts to align naming of functions, parameters and outputs to be closer with libsodiium terminology. This includes significant changes to the encryption and decryption functions, transitioning from using the term "SodiumEncryptedString" to "SodiumSealedBox".

Changes to function names and parameters

  • ConvertFrom-SodiumEncryptedString renamed to ConvertFrom-SodiumSealedBoxString, with updates to function name, parameters, and documentation to use "SealedBox" instead of "EncryptedString". Also updates the parameter from Secret to SealedBox to better align with libsodium.
  • ConvertTo-SodiumEncryptedString renamed to ConvertTo-SodiumSealedBoxString, with updates to function name, parameters, and documentation to use "SealedBox" instead of "EncryptedString". Also uipdates the parameter from Secret to Message to better align with libsodium.

Updates to examples

Documentation updates

  • README.md: Updated examples to use "Sealed Boxes encryption" and changed function calls to ConvertTo-SodiumSealedBox and ConvertFrom-SodiumSealedBox.

Test updates:

  • tests/Module.Tests.ps1: Added new tests for encryption and decryption using ConvertTo-SodiumSealedBox and ConvertFrom-SodiumSealedBox, including error cases for invalid keys.

Type of change

  • 📖 [Docs]
  • 🪲 [Fix]
  • 🩹 [Patch]
  • ⚠️ [Security fix]
  • 🚀 [Feature]
  • 🌟 [Breaking change]

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

@github-actions

github-actions Bot commented Feb 8, 2025

Copy link
Copy Markdown

Module Sodium - v2.0.0 published to the PowerShell Gallery.

@github-actions

github-actions Bot commented Feb 8, 2025

Copy link
Copy Markdown

GitHub release for Sodium v2.0.0 has been created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🌟[Major Feature]: Renaming Encryption/Decryption Functions

1 participant