mirror of
https://github.com/bitwarden/server
synced 2026-02-21 20:03:40 +00:00
19 lines
436 B
C#
19 lines
436 B
C#
using Bit.Core.Utilities;
|
|
using Bit.Core.Vault.Entities;
|
|
using Bit.RustSDK;
|
|
|
|
namespace Bit.Seeder.Factories;
|
|
|
|
internal static class FolderSeeder
|
|
{
|
|
internal static Folder Create(Guid userId, string userKeyBase64, string name)
|
|
{
|
|
return new Folder
|
|
{
|
|
Id = CoreHelpers.GenerateComb(),
|
|
UserId = userId,
|
|
Name = RustSdkService.EncryptString(name, userKeyBase64)
|
|
};
|
|
}
|
|
}
|