mirror of
https://github.com/bitwarden/mobile
synced 2026-01-03 09:03:35 +00:00
initial commit
This commit is contained in:
21
src/App/Utilities/Extentions.cs
Normal file
21
src/App/Utilities/Extentions.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using Bit.App.Abstractions;
|
||||
using Bit.App.Models;
|
||||
using XLabs.Ioc;
|
||||
|
||||
namespace Bit.App
|
||||
{
|
||||
public static class Extentions
|
||||
{
|
||||
public static CipherString Encrypt(this string s)
|
||||
{
|
||||
if(s == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(s));
|
||||
}
|
||||
|
||||
var cryptoService = Resolver.Resolve<ICryptoService>();
|
||||
return cryptoService.Encrypt(s);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user