Encrypts and decrypts strings using ABP's IStringEncryptionService (AES-CBC). Handles passphrase, salt, IV, and key-size configuration for .NET applications.
Ships in abp-infrastructure. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use IStringEncryptionService when application code must interoperate with ABP's reversible string-encryption format. It is an AES-CBC compatibility service, not a password hasher, signature mechanism, token generator, or secret vault.
IStringEncryptionService has synchronous nullable methods:
string? Encrypt(string? plainText, string? passPhrase = null, byte[]? salt = null);
string? Decrypt(string? cipherText, string? passPhrase = null, byte[]? salt = null);
public class ProtectedValueService : ITransientDependency
{
private readonly IStringEncryptionService _encryptionService;
public ProtectedValueService(IStringEncryptionService encryptionService)
{
_encryptionService = encryptionService;
}
public string Protect(string value)
{
return _encryptionService.Encrypt(value)!;
}
public string Unprotect(string value)
{
return _encryptionService.Decrypt(value)!;
}
}
Encrypt(null) returns null. Decrypt(null) and Decrypt("") return null. The encrypted representation is Base64 text.
AbpStringEncryptionOptions ships with a fixed, publicly-known default passphrase,
init-vector, and salt (they're hard-coded in the ABP source). Treat them as insecure
and always override them for any real deployment — anything encrypted under the
defaults is effectively unprotected. Keysize defaults to 256.
AbpSecurityModule reads these optional configuration keys (set the passphrase from a
secret-backed provider, not a committed file):
{
"StringEncryption": {
"KeySize": "256",
"DefaultPassPhrase": "replace-through-a-secret-provider",
"InitVectorBytes": "replace-with-16b",
"DefaultSalt": "replace-with-application-specific-salt"
}
}
Do not commit a real passphrase in configuration files. Supply it through the deployment's secret-backed configuration provider. Every process that decrypts existing data must use compatible values. ABP ASCII-encodes InitVectorBytes, so it must be exactly 16 characters (the AES-CBC block size) — a wrong length throws at encrypt/decrypt time.
When passing passPhrase or salt directly to a method, that argument overrides the corresponding default for that call. The configured InitVectorBytes and Keysize still apply.
StringEncryptionService derives a key with Rfc2898DeriveBytes, creates AES in CBC mode, and uses the configured fixed initialization vector. It does not append or verify an authentication tag. With the same passphrase, salt, and IV, identical plaintext produces identical ciphertext.
Use this format only where ABP compatibility is the requirement. For new security protocols, choose an authenticated-encryption design and a managed key lifecycle outside this abstraction.
DefaultPassPhrase in production — ABP explicitly recommends replacing it.Encrypt without storing it — Decrypt needs the same salt.What SKILL.md sets; muted values are Claude Code's defaults
/abp-infrastructure:encrypt-stringsfrom abp-infrastructure
npx claudepluginhub abpframework/abp-skills --plugin abp-infrastructure16 skills in this plugin
/check-simple-stateComposable ABP simple-state conditions on definitions and UI state objects. USE FOR: ISimpleStateChecker, ISimpleStateCheckerManager, permission/feature/authentication conditions on IHasSimpleStateCheckers. DO NOT USE FOR: tenant/edition feature values (manage-settings-and-features); permission authorization of a service call (permissions-and-authorization); startup-time module capabilities (toggle-global-features)./configure-audit-loggingABP audit logging: per-request log of requests, actions, entity change history, exceptions. USE FOR: enabling/disabling auditing, GET request logging, entity change history, AuditLogContributors, ignoring types, [Audited]/[DisableAuditing], manual scopes with IAuditingManager. DO NOT USE FOR: general application/UI logging or Serilog (configure-logging); setting/feature values (manage-settings-and-features); background jobs/workers/handlers (background-jobs-and-events)./configure-loggingABP startup, runtime, exception logging, and the startup-template Serilog bridge. USE FOR: typed ILogger in ABP services; IInitLoggerFactory/GetInitLogger startup buffering; ABP exceptions via LogException; Serilog via UseSerilog. DO NOT USE FOR: audit-log persistence and entity history (configure-audit-logging); distributed traces and metrics (out of scope, wire the OpenTelemetry .NET SDK directly); exception-to-HTTP response details (handle-validation-and-errors)./generate-guidsABP IGuidGenerator entity IDs and sequential GUID layout for the active database provider. USE FOR: IGuidGenerator.Create; SequentialGuidGenerator; SimpleGuidGenerator; AbpSequentialGuidGeneratorOptions.DefaultSequentialGuidType; SequentialAtEnd / SequentialAsString / SequentialAsBinary. DO NOT USE FOR: cache keys and invalidation (cache-entities); cryptographic tokens or secrets (encrypt-strings); schema and repository design./handle-dates-and-timeABP DateTime, UTC normalization, time zones, persistence. USE FOR: IClock and AbpClockOptions; Utc/Local/Unspecified; Clock.Normalize; EF Core DateTime converters and DisableDateTimeNormalization; per-request tenant/user timezone; ITimezoneProvider Windows/IANA. DO NOT USE FOR: timezone settings (manage-settings-and-features); audit-log persistence (configure-audit-logging); multi-tenancy resolution (configure-multi-tenancy)./integrate-aiABP AI workspaces with Microsoft.Extensions.AI, Microsoft Agent Framework, or Microsoft.SemanticKernel. USE FOR: choosing an ABP AI abstraction, AbpAIModule, AbpAIWorkspaceOptions, resolving IChatClient/IChatClientAccessor/IKernelAccessor, per-workspace provider/model config. DO NOT USE FOR: general .NET AI/ML outside ABP's workspace integration (out of scope); AI-call observability (out of scope); tenant-editable AI providers via the commercial AI Management module.Other plugins' skills for the same job